package com.justech.eat.service;

import com.justech.eat.entity.SysUser;
import com.justech.eat.vo.PageDto;

import java.util.List;

/**
 * @program: eat-service
 * @description: 用户服务
 * @author: feifei.li
 * @create: 2020-06-01 16:15
 **/
@Deprecated
public interface SysUserService {

    /**
     * 根据工号查询用户
     *
     * @param jobNumber
     * @return
     */
    SysUser get(String jobNumber);

    /**
     * 根据全局id查询用户
     *
     * @param sourceNo
     * @return
     */
    SysUser getBySourceNo(String sourceNo);

    /**
     * 分页获取用户
     *
     * @param sysUser
     * @param page
     * @param size
     * @return
     */
    PageDto<SysUser> getPage(SysUser sysUser, Long page, int size);

    /**
     * 获取所有在职用户
     * @return
     */
    List<SysUser> findAllInJob();
}
